import { createStore } from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'

const store = createStore({
  state,
  mutations,
  actions
})

export function getToken () {
  return store.state.user.token
}

export default store